
#include "PhysicsLogic.h"
#include "Renderer.h"
#include "Sound.h"
#include "Game.h"

#include <iostream>

int main(int argc, char** argv) {
	std::cout << "--- PhysX Game ---" << std::endl;

	srand(time(NULL));

	Game::Init();

	int width = 900;
	int height = 600;
	Game::config.Get("ResolutionX", width);
	Game::config.Get("ResolutionY", height);
	Renderer::Init(argc, argv, width, height, "PhysX Game");

	Sound::Init();

	bool physxInitialized = PhysicsLogic::Init();
	if (physxInitialized) {
		Game::Reset(false);
		Renderer::Run();
	}
	PhysicsLogic::Exit();

	return 0;
}
